using System;
using System.Windows.Forms;
using RollManager.Forms.MainPanels;
using RollManager.Library;

namespace RollManager.Forms.MenuDialogs
{
    public partial class AddServerGroupDialog : MenuDialog
    {
        public AddServerGroupDialog( AdminActionsPanel panel ) : base( panel )
        {
            InitializeComponent();
        }

        private void okButton_Click( object sender, EventArgs e )
        {
            Database.AddServerGroup( nameBox.Text );
            CloseAndRefresh();
        }

        private void cancelButton_Click( object sender, EventArgs e )
        {
            Close();
        }
    }
}